# !python3      # 使用工具:PyCharm
# 用户登录名:yyds_l
# 项目名称: python爬虫     文件名称:001_python爬虫_获取数据_定制请求头
# 创建日期:2022/3/24      创建时间:20:40
# 2022/03/24 20:40

"""ok"""


def print_hi_two(name):
    # 异常捕捉
    try:
        print(f'Hi, {name}')
        print(name)
    except Exception as err:
        print(err)


def print_hi():
    # 异常捕捉
    try:
        print('ok')
        i = 'python'
        # 多线程调用
        print_hi_two(i)
        print("ok")
    except Exception as err:
        print(err)


# 调用
def runPs():
    print_hi()


# 运行
if __name__ == '__main__':
    runPs()
